Class yassl.applynode
All Packages    This Package    Previous    Next

Class yassl.applynode

java.lang.Object
   |
   +----yassl.pnode
           |
           +----yassl.unarynode
                   |
                   +----yassl.applynode

public class applynode
extends unarynode
This node applies the lambda node to the arglist, after creating a new environment. The mechanism is stolen from Scheme, the procedure is applied in the parent environment that was present when the lambda node was created.

Constructor Index

 o applynode(pnode, Vector)

Method Index

 o eval(Env)
Eval'ling an apply node evals the lambdanode, then the arglist, then hands it off to the apply part of the lambdanode.
 o help(Env)
Return a string to be used in help messages about a particular node.

Constructors

 o applynode
  public applynode(pnode lambdaproc,
                   Vector alist)

Methods

 o eval
  public pnode eval(Env e) throws yasslError
Eval'ling an apply node evals the lambdanode, then the arglist, then hands it off to the apply part of the lambdanode.
Overrides:
eval in class pnode

 o help

  public String help(Env e)
Return a string to be used in help messages about a particular node.
Overrides:
help in class pnode


All Packages    This Package    Previous    Next